package com.guodexiain.nyiotclient.service.impl;

import com.guodexiain.nyiotclient.mapper.UserMapper;
import com.guodexiain.nyiotclient.model.User;
import com.guodexiain.nyiotclient.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User save(User u){
        return userMapper.save(u);
    }

    public User findUserByNameAndPwd(User user) {
        return userMapper.findByNameAndPwd(user);
    }
}
